<?php

namespace app\admin\model;

use think\Model;

class ExchangeModel extends Model
{
  /**
   * 关联 user表
   * @return $this
   */
  public function user()
  {
    return $this->belongsTo('UserModel', 'uid')->setEagerlyType(1);
  }
}